package com.activitycode.datamodel.model;

import java.io.Serializable;

import org.json.*;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName="ZADPETINFO")
public class PetInfo  implements Serializable{
	
    /**
	 * 
	 */
	private static final long serialVersionUID = -4855563387989619544L;
	@DatabaseField(id=true)
	private String petId;
	@DatabaseField
    private String fAdopt;
	@DatabaseField
    private String headImage;
	@DatabaseField
    private String petSex;
	@DatabaseField
    private String age;
	@DatabaseField
    private String fHybridization;
	@DatabaseField
    private String petName;
	@DatabaseField
    private String isEntrust;
	@DatabaseField
    private String name;
	@DatabaseField
	private String userId;
    
	public PetInfo () {
		
	}	
        
    public PetInfo (JSONObject json) {
    
        this.petId = json.optString("pet_id");
        this.fAdopt = json.optString("f_adopt");
        this.headImage = json.optString("head_image");
        this.petSex = json.optString("pet_sex");
        this.age = json.optString("age");
        this.fHybridization = json.optString("f_hybridization");
        this.petName = json.optString("pet_name");
        this.isEntrust = json.optString("is_entrust");
        this.name = json.optString("name");

    }
    
    public String getPetId() {
        return this.petId;
    }

    public void setPetId(String petId) {
        this.petId = petId;
    }

    public String getFAdopt() {
        return this.fAdopt;
    }

    public void setFAdopt(String fAdopt) {
        this.fAdopt = fAdopt;
    }

    public String getHeadImage() {
        return this.headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public String getPetSex() {
        return this.petSex;
    }

    public void setPetSex(String petSex) {
        this.petSex = petSex;
    }

    public String getAge() {
        return this.age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getFHybridization() {
        return this.fHybridization;
    }

    public void setFHybridization(String fHybridization) {
        this.fHybridization = fHybridization;
    }

    public String getPetName() {
        return this.petName;
    }

    public void setPetName(String petName) {
        this.petName = petName;
    }

    public String getIsEntrust() {
        return this.isEntrust;
    }

    public void setIsEntrust(String isEntrust) {
        this.isEntrust = isEntrust;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }


    
}
